// import $http from 'axios'
// import elementUI from 'element-ui'

var hostUrl = ''
var publicFuction = new PublicMethod() /* new一个方法 */
function PublicMethod () {} /* 定义变量 */
PublicMethod.prototype.changeComponent = function (_this, dispatchName, page) { /* 将方法定义到构造方法的prototype上， */
  let params = {
    page: page
    // isClean: id == '' ? true : false
  }
  _this.$store.dispatch(dispatchName, params)
  // _this.$router.push({name: name, query: query})
}
export {publicFuction, hostUrl as apiUrl}
